import { defineConfig } from 'vite';
import path from 'node:path';
import electron from 'vite-plugin-electron/simple';
import react from '@vitejs/plugin-react';
import UnoCss from 'unocss/vite';
export default defineConfig({
    plugins: [
        react(),
        UnoCss(),
        electron({
            main: {
                entry: 'electron/main.ts',
            },
            preload: {
                input: path.join(__dirname, 'electron/preload.ts'),
            },
            renderer: process.env.NODE_ENV === 'test'
                ? undefined
                : {},
        }),
    ],
});
